// 对外暴露配置的路由(常量路由)
export const constantRoute = [
    {
      // 登录
      path: '/login',
      component: () => import('@/views/login/index.vue'),
      name: 'login', // 命名路由
      meta: {
        title: '登录', //菜单标题
        hidden:true //路由标题在菜单中是否隐藏
      }
    },
    {
      // 登录成功以后展示数据
      path: '/',
      component: () => import('@/layout/index.vue'),
      name: 'layout',
      meta: {
        title: 'layout',
        hidden:false
      },
      children: [
        {
          path: '/home',
          component: () => import('@/views/home/index.vue'),
          meta: {
            title: '首页',
            hidden:true
          }
        },
        {
          path: '/ceshi',
          component: () => import('@/views/home/index.vue'),
          meta: {
            title: '测试',
            hidden:false
          }
        }
  
      ]
    },
    {
      // 404
      path: '/404',
      component: () => import('@/views/404/index.vue'),
      name: '404',
      meta: {
        title: '404',
        hidden:true
      }
    },
    {
      // 任意路由，就是都没命中的兜底
      path: '/:pathMatch(.*)*',
      redirect: '/404',
      name: 'Any',
      meta: {
        title: '任意',
        hidden:true
      }
    },
  ]